package com.vue.vuedemo.service.impl;

import com.vue.vuedemo.dao.TeamMapper;
import com.vue.vuedemo.pojo.Team;
import com.vue.vuedemo.service.TeamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("TeamService")
public class TeamServiceImpl implements TeamService {

    @Resource
    TeamMapper teamMapper;

    @Override
    public List<Team> findAll() {
        return teamMapper.findAll();
    }

    @Override
    public void add(Team team) {
        teamMapper.add(team);
    }

    @Override
    public void del(Integer tid) {
        teamMapper.del(tid);
    }
}
